export const enumGuaMethod = {
  1: '保证担保',
  2: '质押担保',
  3: '抵押担保',
}

export const enumGuaMethodIndex = {
  1: '3.1',
  2: '3.2',
  3: '3.3',
}

export const enumLetterStatus = {
  0: { label: '未申请', css: 'info' },
  1: { label: '回函中', css: 'warning' },
  2: { label: '已通过', css: 'success' },
  3: { label: '已拒绝', css: 'danger' },
}

// 银行签约登记状态
export const enumApprovalStatus = {
  0: { label: '未签约', css: 'danger' },
  1: { label: '已签约', css: 'success' },
  2: { label: '未通过', css: 'warning' },
}

export const enumBankLetterStatus = {
  0: '待发函',
  1: '待银行项目经理回函',
  2: '已回执',
  3: '已拒绝',
}

export const enumCreditLetterStatus = {
  0: '未申请',
  1: '审批中',
  2: '已通过',
  3: '已拒绝',
}

// 放款通知状态
export const enumNoticeStatus = {
  0: { label: '待发放通知', css: 'warning' },
  1: { label: '待回执', css: 'info' },
  2: { label: '已回执', css: 'success' },
  3: { label: '已拒绝', css: 'danger' },
}

export const enumProjectNode = {
  1: '受理环节',
  2: '立项环节',
  3: '联保受理环节',
  4: '区县担保项目经理审批环节',
  5: '区县担保业务部负责人审批环节',
  6: '区县担保风控部负责人审批环节',
  7: '区县担保公司负责人审批环节',
  8: '市担保项目经理审批环节',
  9: '市担保业务部负责人审批环节',
  10: '市担保风控部负责人审批环节',
  11: '市担保公司负责人审批环节',
  12: '电子保函环节',
  13: '联保函环节 ',
  14: '放款通知环节',
}

export const enumGuatype = {
  2: '直担业务',
  3: '限率业务',
  4: '联担业务',
}

export const enumItemStatus = {
  0: { label: '待立项', css: 'warning' },
  1: { label: '已立项', css: 'success' },
  2: { label: '立项拒绝', css: 'danger' },
}

export const enumProjectResStatus = {
  0: { label: '待调查', css: 'warning' },
  1: { label: '审批中', css: 'info' },
  2: { label: '已通过', css: 'success' },
  3: { label: '已拒绝', css: 'danger' },
}

export const enumProjectEleStatus = {
  0: { label: '未发函', css: 'warning' },
  1: { label: '待回执', css: 'info' },
  2: { label: '已回执', css: 'success' },
  3: { label: '已拒绝', css: 'danger' },
}

export const enumProvinceEleStatus = {
  0: { label: '未发函', css: 'warning' },
  1: { label: '待签章', css: 'info' },
  2: { label: '已签章', css: 'success' },
}

export const enumIsApprovalGuaStatus = {
  0: { label: '未受理', css: 'warning' },
  1: { label: '已受理', css: 'success' },
  2: { label: '已拒绝', css: 'danger' },
}

export const enumContractType = {
  1: '授信合同',
  2: '借款合同',
}

export const enumTaskType = {
  1: '未建档',
  2: '未推荐',
  3: '项目受理',
  4: '项目立项',
  5: '项目调查',
  6: '项目审批',
  7: '电子函件',
  8: '合同处理',
  9: '放款登记',
  10: '保费缴纳',
  11: '到账确认',
  12: '支付确认',
  13: '贷后评价',
  15: '放款通知',
  18: '现场调查',
  19: '报表在保项目',
  20: '报表解保项目',
  21: '报表风险项目',
  // 银行端任务
  14: '审批登记',
  16: '放款通知',
  17: '放款登记',
  35: '合同审批',
  36: '放款审批',
  42: '签约管理',
}

export const enumAccessStatusLabel = {
  // '-1': { label: '未准入', style: 'secondary' },
  0: { label: '待审核', style: 'info' },
  1: { label: '已准入', style: 'primary' },
  2: { label: '已拒绝', style: 'danger' },
  3: { label: '已过期', style: 'warning' },
}

export const enumAccessStatus = {
  // '-1': '未准入',
  0: '待审核',
  1: '已准入',
  2: '已拒绝',
  3: '已过期',
}

export const enumApprovalGuaType = [
  { label: '直担业务', value: 2 },
  { label: '市联担业务', value: 1 },
  { label: '省联担业务', value: 4 },
]

export const enumProcessStatus = {
  0: '常规流程(权限内)',
  1: '常规流程(权限外)',
  2: '便捷流程',
}

export const enumScanBlackStatus = {
  pass: { label: '通过', style: 'success' },
  refuse: { label: '不通过', style: 'danger' },
  warning: { label: '预警谨慎受理', style: 'warning' },
}

export const enumSubmitType = {
  1: '政府提交',
  2: '农但提交',
  3: '企业提交',
  4: '供销社提交',
  5: '银行提交',
  6: '客户申请',
  7: '新农直通车推送',
  8: '蛋链平台推送',
  9: '中小企业服务平台',
  10: '省金服平台',
}
